<?php
#include(APPLICATION_PATH . DS . "/modules/home/model/Friend.php");
//Social Network Service helper functions
class Helper_Friend extends Zend_Controller_Action_Helper_Abstract
{
    //check user member ship
    public function isFriend($uid1, $uid2)
    {
        //return false;
        $mdl = AppGlobal::loadModel("friend", "home");
        return $mdl->checkExistFriend($uid1, $uid2);
    }
    
    //
    public function listFriend($uid)
    {
        //return false;
        $mdl = AppGlobal::loadModel("friend", "home");
        return $mdl->listFriend($uid);
    }
    
}

